<template>
    <div class="saveBtn" :style="'background-color:'+color" @click="saveFn">{{ value }}</div>
  </template>
  
  <script>
    export default {
      components: {},
      data() {
        return {

        }
      },
      props: {
        value:String,
        color:String,
      },
      methods:{
        saveFn(){
            this.$emit('saveClick')
        }
      },
      mounted(){
      },
      created() {
      },
    }
  </script>
  
  <style scoped lang="less">
  .saveBtn{
      width: 100%;
      margin: 0 auto ;
      text-align: center;
      line-height: 2.2rem;
      border-radius: 0.25rem;
      color: white;
      font-size: 0.6rem;
    }
  </style>
  